'''
Created on Dec 4, 2010

@author: jackreilly
'''
from django.utils.simplejson import loads

libraries = [{ 'src': "https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js",
              'type': "text/javascript",
               'classType': 'main' },
             { 'src': "https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js",
               'type': "text/javascript",
               'classType': 'main' },
             { 'src': "https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.js",
               'type': "text/javascript",
               'classType': 'main' },
             { 'src': '/jsscripts/mainlogic.js',
               'type': "text/javascript",
               'classType': 'main' },
               { 'src': "https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js",
              'type': "text/javascript",
               'classType': 'newstation' },
             ]

def getLibraries( classType ):
    return filter( lambda( lib ): lib['classType'] is classType, libraries )

